var _ = require('lodash');

function chunk(array, size){
  let newArray = _.chunk(array, size)
  return newArray;
}

console.log(chunck(['a', 'b', 'c', 'd'], 2))